package com.hrt.manage.product.dao;

import java.util.List;

import com.hrt.base.BaseDao;
import com.hrt.bean.GiftDetail;
import com.hrt.bean.GiftInfor;

public interface GiftDetailDao extends BaseDao<GiftDetail> {
	
	/**分页查询的重写*/
	@SuppressWarnings("rawtypes")
	public List<GiftDetail> queryPageByCondition(List conditions, int pageIndex, int pageSize) ;
	
	/**上下架的查询*/
	public List<GiftDetail> findIspush(GiftInfor giftInfor);
	
	/** 按是否删除查询 */
	public List<GiftDetail> findDelAll();

	/**根据礼品基本信息的id找到礼品规格的id集合*/
	public List<GiftDetail> getDetailIdforId(Long id);
	
	/**加载礼品规格数据**/
	public List<GiftDetail> queryGifts(String itemCondition);

	public GiftDetail getDetailByGiftIdAndRuleId(Long giftId, Long ruleId);
	
	/**
	 * 根据礼品规格Id返回礼品规格当前的库存
	 */
	public Long getGiftTotals(Long giftDetailId);
}
